﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.BaseData.Infrastructure.Migrations
{
    public partial class x : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Pwd",
                table: "UserModel",
                newName: "UserPwd");

            migrationBuilder.RenameColumn(
                name: "Name",
                table: "UserModel",
                newName: "UserName");

            migrationBuilder.AddColumn<DateTime>(
                name: "UserCreateTime",
                table: "UserModel",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<bool>(
                name: "UserState",
                table: "UserModel",
                type: "bit",
                nullable: false,
                defaultValue: false);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "UserCreateTime",
                table: "UserModel");

            migrationBuilder.DropColumn(
                name: "UserState",
                table: "UserModel");

            migrationBuilder.RenameColumn(
                name: "UserPwd",
                table: "UserModel",
                newName: "Pwd");

            migrationBuilder.RenameColumn(
                name: "UserName",
                table: "UserModel",
                newName: "Name");
        }
    }
}
